body {
    font-family: Arial, sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f5f5f5;
}

.container {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

textarea {
    width: 100%;
    height: 200px;
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
}

.result {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    min-height: 100px;
    white-space: pre-wrap;
}

ruby {
    font-size: 20px;
    margin: 0 8px;
}

rt {
    font-size: 14px;
    color: #666;
    line-height: 2;
}

.button-group {
    margin: 15px 0;
}

button {
    padding: 10px 20px;
    margin-right: 10px;
    border: none;
    border-radius: 4px;
    background-color: #4CAF50;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #45a049;
}

.print-only {
    display: none;
}

@media print {
    .no-print {
        display: none;
    }

    .print-only {
        display: block;
    }

    body {
        background-color: white;
        padding: 0;
        margin: 0;
    }

    .container {
        box-shadow: none;
        padding: 0;
    }

    .result {
        border: none;
        padding: 0;
        margin: 0;
    }
}